package com.cnd.scm.rabbitmq.common;

import java.io.Serializable;

/**
 * @version V1.0
 * @ClassName: DetailResponse
 * @Description: 返回内容
 * @author: 李启联
 * @date: 2021-02-24 10:50
 * @Copyright: Copyright (c), 2021
 */
public class DetailResponse implements Serializable {

    private boolean ifSuccess;

    private String errorCode;

    private String errMsg;

    public boolean isIfSuccess() {
        return ifSuccess;
    }

    public void setIfSuccess(boolean ifSuccess) {
        this.ifSuccess = ifSuccess;
    }

    public String getErrorCode() {
        return errorCode;
    }

    public void setErrorCode(String errorCode) {
        this.errorCode = errorCode;
    }

    public String getErrMsg() {
        return errMsg;
    }

    public void setErrMsg(String errMsg) {
        this.errMsg = errMsg;
    }

    public DetailResponse() {
    }

    public DetailResponse(boolean ifSuccess, String errorCode, String errMsg) {
        this.ifSuccess = ifSuccess;
        this.errorCode = errorCode;
        this.errMsg = errMsg;
    }

    @Override
    public String toString() {
        return "DetailResponse{" +
                "ifSuccess=" + ifSuccess +
                ", errorCode='" + errorCode + '\'' +
                ", errMsg='" + errMsg + '\'' +
                '}';
    }
}